<form class="layui-form layui-form-pane" id="FormBaseConstWorkdateAdd" lay-filter="FormBaseConstWorkdateAdd" action="/base/const/workdate/add">
    <div class="layui-row p-l-sm m-b-xl">
        <div class="layui-row">
            <div th:replace="common/plugin :: pa-form-input('text','工作日(*)','dateDay','layui-col-md12',10,'required','')"></div>
        </div>
    </div>
</form>
<script>
    layui.use(["jquery", "laydate", 'form'], function () {
        let laydate = layui.laydate;
        let form = layui.form;
        let $ = layui.jquery;
        form.render();
        laydate.render({
            elem: "#FormBaseConstWorkdateAdd .layui-input[name=dateDay]",
            type: "month",
            ready: function () {
                // 双击直接默认确认日期
                $(".laydate-month-list").dblclick(function () {
                    $(".laydate-btns-confirm").click();
                });
            }
        });
    });
</script>